﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Teamplate.Master" AutoEventWireup="true" CodeBehind="DatMua.aspx.cs" Inherits="WebNhaXuatBan.DatMua" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <a style="margin-left:30px;" href="default.aspx"><img src="Images/Folder-Home-Folder-icon.png" alt="Group EM09" /></a>
<img style="margin-left:30px;" src="Images/DatMua.png" alt="Group EM09" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div style="width:980px; margin-left:auto; margin-right:auto; border:1px solid #bad9eb;">

<div style="width:980px;height:30px; background-image:url(../Images/ThanhTieuDe.png);"></div>
<asp:Label ID="Label1" runat="server" Text="Thông Báo" Font-Size="X-Large" 
        ForeColor="#CC0000"></asp:Label>
<%BUS.SachBUS sachbus = new BUS.SachBUS();
    int masach=int.Parse(Request.QueryString["MaSach"]);
    DTO.SachDTO sachdto = sachbus.LaySachTheoMaSach(masach);
     %>
<br />
<div style="width:300px;height:300px;margin-left:auto; margin-right:auto;"><img src="<%=sachdto.FileHinh %>" /></div>
<div style="width:300px;height:300px;margin-left:auto; margin-right:auto;">
<br />
<span style="color:#366276; font-size:30px;"><%=" "+sachdto.TenSach %></span>
<br />
<br />
Tác Giả:<%=" " + sachdto.TacGia%>
<br />
<br />
<span style="color:red;">Giá:<%=" " + sachdto.GiaBan%>$</span>
<br />
<br />
Số Lượng:<%=" " %><asp:TextBox ID="TextBox1" runat="server" Width="74px">1</asp:TextBox>
<br />
<br />
    <asp:Button ID="Button1" runat="server" Text="Thêm Vào Giỏ Hàng" 
        onclick="Button1_Click1" />
</div>
</div>
</asp:Content>
